home *** CD-ROM | disk | FTP | other *** search
/ Utilities Professional 1-1500 / Utilities Professional 1-1500 (1994)(WPD)[!].iso / 12511500 / var1432.dms / var1432.adf / NDUK-V40.lha / V40 / include / devices / timer.i < prev    next >
Text File  |  1993-10-15  |  848b  |  55 lines

  1.     IFND    DEVICES_TIMER_I
  2. DEVICES_TIMER_I    SET    1
  3. **
  4. **    $VER: timer.i 36.10 (5.3.91)
  5. **    Includes Release 40.15
  6. **
  7. **    Timer device name and useful definitions.
  8. **
  9. **    (C) Copyright 1985-1993 Commodore-Amiga Inc.
  10. **        All Rights Reserved
  11. **
  12.  
  13.  
  14.     IFND    EXEC_TYPES_I
  15.     INCLUDE "exec/types.i"
  16.     ENDC
  17.  
  18.     IFND    EXEC_IO_I
  19.     INCLUDE "exec/io.i"
  20.     ENDC
  21.  
  22. * unit defintions
  23. UNIT_MICROHZ    EQU    0
  24. UNIT_VBLANK    EQU    1
  25. UNIT_ECLOCK    EQU    2
  26. UNIT_WAITUNTIL    EQU    3
  27. UNIT_WAITECLOCK    EQU    4
  28.  
  29. TIMERNAME    MACRO
  30.         DC.B    'timer.device',0
  31.         DS.W    0
  32.         ENDM
  33.  
  34.  STRUCTURE TIMEVAL,0
  35.     ULONG    TV_SECS
  36.     ULONG    TV_MICRO
  37.     LABEL    TV_SIZE
  38.  
  39.  STRUCTURE ECLOCKVAL,0
  40.     ULONG    EV_HI
  41.     ULONG    EV_LO
  42.     LABEL    EV_SIZE
  43.  
  44.  STRUCTURE TIMEREQUEST,IO_SIZE
  45.     STRUCT    IOTV_TIME,TV_SIZE
  46.     LABEL    IOTV_SIZE
  47.  
  48. * IO_COMMAND to use for adding a timer
  49.     DEVINIT
  50.     DEVCMD    TR_ADDREQUEST
  51.     DEVCMD    TR_GETSYSTIME
  52.     DEVCMD    TR_SETSYSTIME
  53.  
  54.     ENDC    ; DEVICES_TIMER_I
  55.